changeAppendPassword = function(){
	var appendPasswordPanel = new Ext.form.FormPanel( {
		id : "appendPasswordPanel",
		width:500,
		height:150,
		labelPad : 0,
		//labelWidth : 80,
		margin:200,
		bodyStyle : "padding-left:120px;padding-top:25px;padding-right:100px;",
		layout : "form",
		fieldDefaults: {
		        labelWidth: 50,
		        anchor: '100%'
		},
		items:[  
	      /* {  
	           xtype:'textfield',  
	           fieldLabel:'原始密码', 
	           inputType:'password',
	           id:'historyPassword',
	           name:'historyPassword',  
	           allowBlank:false, 
	           regex: /^([a-zA-Z0-9]{6,20})$/i,
	           regexText: '密码必须是字母或数字,且长度是6~20',
	           blankText:'原始密码不能为空'  
	       },  */
	       {  
	           xtype:'textfield',  
	           fieldLabel:'新密码', 
	           labelWidth: 50,
	           id:'newappendPassword',
	           name:'newappendPassword',  
	           inputType:'password',  
	           allowBlank:false,
	           regex: /^([a-zA-Z0-9]{6,20})$/i,
	           regexText: '密码必须是字母或数字,且长度是6~20',
	           blankText:'新密码不能为空'  
	       },  
	       {  
	           xtype:'textfield',  
	           fieldLabel:'确认新密码', 
	           labelWidth: 100,
	           id:'newappendPassword1',
	           name:'newappendPassword1',  
	           inputType:'password',  
	           allowBlank:false,  
	           regex: /^([a-zA-Z0-9]{6,20})$/i,
	           regexText: '密码必须是字母或数字,且长度是6~20',
	           blankText:'新密码不能为空'  
	       }
	         
	], 
	buttons : [ {
			xtype : "button",
			text : "确定",
			pressed : false,
			handler : validatorData
		},
		{
			xtype : "button",
			text : "重置",
			handler : function() {
				appendPasswordPanel.getForm().reset();
		}
		}],
	buttonAlign : "center"

	});
	function validatorData() {
		//var historyPassword = Ext.getCmp("historyPassword").getValue();
		var newPassword = Ext.getCmp("newappendPassword").getValue();
		var newPassword1 = Ext.getCmp("newappendPassword1").getValue();
		//Ext.Msg.alert("警告", historyPassword);
	/*	if (historyPassword == null || historyPassword=="") {
			Ext.Msg.alert("警告", "原始密码不能够为空！");
			return;
			}*/
		if(newPassword == null || newPassword == ""){
			Ext.Msg.alert("警告", "新不能够为空！");
			return;
		}
		if(newPassword1 == null || newPassword1==""){
			Ext.Msg.alert("警告", "新不能够为空！");
			return;
		}
		if(newPassword!=newPassword1){
			Ext.Msg.alert("警告", "两次新密码输入不一致！");
			return;
		}
		if(appendPasswordPanel.getForm().isValid()){
			appendPasswordPanel.getForm().submit({
				waitTitle : '提示',//标题
				waitMsg : '正在提交数据请稍后...',//提示信息
				url : 'changeAppendPasswordAction.action',
				method : 'post',
				params : {
				//	oldPassword : historyPassword,
					newPassword : newPassword
				}, //参数
				success : function(form, action) {
					var flag=action.result;
					if (flag.success == true) {
						Ext.Msg.alert("提示", "密码修改成功！");
					} else {
						Ext.Msg.alert("提示", flag.msg);
					}
				},
				failure : function(form,action) {
					Ext.Msg.alert("提示", "密码修改失败！");
				}
			});
		}else{
			Ext.Msg.alert("提示", "输入的密码不符合要求！");
		}
	}
	return appendPasswordPanel;
}